.TH make_vtl_media "1" "@MONTH@ @YEAR@" "mhvtl @VERSION@" "User Commands"
.SH NAME
make_vtl_media \- create the library database from lib_contents.* file(s)
.SH SYNOPSIS
\fBmake_vtl_media \-h|\-\-help\fR -- print help message and exit, or
.br
.B make_vtl_media
.I [OPTIONS]
.SH DESCRIPTION
.PP
Where
.I OPTIONS
are from:
.TP
\fB\-H\fR, \fB\-\-home-dir\fR=\fIDIR\fR
Set the
.I mhvtl
home directory [default
.BR @HOME_PATH@ ]
.TP
\fB\-C\fR, \fB\-\-config-dir\fR=\fIDIR\fR
Set the config directory [default
.BR @CONFIG_PATH@ ]
.TP
\fB\-f\fR, \fB\-\-force\fR
Overwrite existing database files, if needed.
.TP
\fB\-c\fR, \fB\-\-create-dir\fR
Create the home directory, if needed.
.PP
This program is invoked initialy when the software is installed, but
can also be ran later to recreate the tape libraray database. It does so by reading
the
.I device.conf
and
.I library_contents.*
files in our configuration directory, and finding the
.B Slot
entries in those files, extracting the
.I barcode
found for each slot.
.PP
.IP "If \fIbarcode\fR starts with W"
Create as Write Once Read Many (WORM) media type.
.IP "If \fIbarcode\fR starts with CLN"
Create media type as cleaning cartridge.
.IP "Otherwise"
Create the media as a data cartridge.
.IP
Attempts to use the chars 7 and 8 to work out the media type (LTO1/2/3/4/5,
T10K, AIT etc) See
.B mktape(1)
for more details on media density.
.IP
Feel free to replace this script with one that better suits your needs.
.PP
If the configuration is regenerated then the
.B mhvtl.target
service should be restarted.
.SH AUTHOR
Written by Mark Harvey
.SH BUGS
Not documented.
.SH "REPORTING BUGS"
Report bugs to <markh794@gmail.com> <mark.harvey@nutanix.com>.
.SH COPYRIGHT
Copyright \(co 2019 Free Software Foundation, Inc.
.P
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.SH "SEE ALSO"
.BR library_contents(5) ,
.BR mktape(1) ,
.BR vtlcmd(1) ,
.BR vtllibrary(1) ,
.BR vtltape(1) ,
.BR generate_device_conf(1) ,
.BR generate_library_contents(1)
